package com.cc.user.service.impl;

import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.cc.user.dao.CertificatePictureDao;
import com.cc.user.entity.CertificatePictureEntity;
import com.cc.user.service.CertificatePictureService;


@Service("certificatePictureService")
public class CertificatePictureServiceImpl extends ServiceImpl<CertificatePictureDao, CertificatePictureEntity> implements CertificatePictureService {


    @Override
    public List<CertificatePictureEntity> getPicturesByCid(Long cid) {
        CertificatePictureDao baseMapper = this.baseMapper;
        return baseMapper.selectList(new QueryWrapper<CertificatePictureEntity>().eq("cid",cid));
    }

    @Override
    public void deleteCustomerPictures(Long cid) {
        CertificatePictureDao baseMapper = this.baseMapper;
        baseMapper.deleteCustomerPictures(cid);
    }
}